package cn.wolfcode.crm.domain;



public class Hello1<T> {
    public static final int CODE_SUCCESS = 200;
    public static final String MSG_SUCCESS = "操作成功";

    private int code;
    private String msg;
    private T data;
    public Hello1(int code,String msg,T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public static <T> Hello1 success(T data){
        return new Hello1(CODE_SUCCESS, MSG_SUCCESS, data);
    }
}
